<?php get_header(); ?>

<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>

<div class="leada">

<div class="col">
<div class="leadimg">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo catch_that_image() ?>" alt="<?php the_title(); ?>"  /></a>
<div class="leadimgp">
<?php the_category(', ') ?>
</div>
</div>
</div>

<div class="col2a">
<div class="entry">
<?php the_content('Read the rest of this entry &raquo;'); ?>

<div class="pmeta">
<div class="alignright"><?php echo get_avatar( get_the_author_email(), '40' ); ?></div>
<div class="author"><?php _e('About the author'); ?> <?php the_author_posts_link(); ?>:</div> <?php the_author_description(); ?>
<div class="mail"><a href="mailto:DELETEME<?php the_author_email(); ?>" title="Email this author"><?php _e('Email the author'); ?></a></div>
<?php
$current_author = get_userdata(get_query_var('author'));
?><a href="<?php the_author_meta('twitter', $current_author->ID); ?>" title="Twitter"><?php _e('Follow me on Twitter'); ?></a> | <?php _e('My'); ?> <a href="<?php the_author_meta('facebook', $current_author->ID); ?>" title="FaceBook"><?php _e('Facebook profile'); ?></a>

</div>

<?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
<!--<?php trackback_rdf(); ?>-->
</div>

</div>

<div class="col3">
<h2><?php the_title(); ?></h2>

<div class="post-date">
<div class="post-day"><?php the_time('d') ?></div>
<div class="post-month"><?php the_time('M') ?></div> 
<div class="post-cat"><?php _e('Topic:'); ?> <?php the_category(', ') ?></div> 
<div class="post-tags"><?php if(function_exists('the_tags')) {$my_tags = get_the_tags();if ( $my_tags != "" ){ the_tags('Tags: ', ', ', ''); } else {echo "Tags: None";} }?>
<?php if(function_exists('UTW_ShowTagsForCurrentPost')) { echo 'Tags: ';UTW_ShowTagsForCurrentPost("commalist");echo ''; } ?></div>
<div class="print"><a href="javascript:window.print();">Print the article</a></div>
<div class="post-cc"><?php comments_number('[ 0 ]', '[ 1 ]', '[ % ]' );?></div>
<?php edit_post_link('<span class="post-month">[ Edit ]</span>','',''); ?>
</div>

</div>

<div class="clear"></div>

<div class="col2ab">
<?php comments_template(); ?>
</div>

<div class="col3a">
<?php include(TEMPLATEPATH."/inc/sidebar.php");?>
</div>

<?php endwhile; else: ?>
<?php endif; ?>

<div class="clear"></div>
<div class="leada">
<div class="cola">
<div class="navigation">
<?php previous_post('&laquo; %','','yes') ?>
</div>
</div>

<div class="col2a">
<div class="navigation">
<?php next_post(' % &raquo;','','yes') ?>
</div>
</div>

<div class="col3a">
<?php include(TEMPLATEPATH."/inc/searchform.php");?>
</div>

</div>
</div>
<?php include(TEMPLATEPATH."/inc/tab.php");?>
</div>

<?php include(TEMPLATEPATH."/inc/footer.php");?>